package com.wqiuqiu.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wqiuqiu.common.PageUtils;
import com.wqiuqiu.gulimall.product.entity.SkuInfoEntity;
import com.wqiuqiu.gulimall.product.entity.SpuInfoEntity;
import com.wqiuqiu.gulimall.product.vo.SkuItemDetailVo;

import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * sku信息
 *
 * @author wqiuqiu
 * @email 18773489795@163.com
 * @date 2023-11-27 20:00:38
 */
public interface SkuInfoService extends IService<SkuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    SkuItemDetailVo item(Long skuId) throws ExecutionException, InterruptedException;

    /**
     * 根据skuids获取信息
     * @param skuIds
     * @return
     */
    List<SkuInfoEntity> batchInfobyIds(List<Long> skuIds);
}

